package com.qqt.csr.web.vo.req;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qqt.csr.common.idempotent.RequestKeyParam;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(name = "CreatingChannelUserImAccountReqVO", description = "创建渠道用户IM账号")
public class CreatingChannelUserImAccountReqVO implements Serializable {
    @Serial
    private static final long serialVersionUID = -9040054582766981678L;

    @Schema(description = "渠道用户id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "渠道用户id不能为空")
    @RequestKeyParam
    private String channelUserId;

    @Schema(description = "渠道id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "渠道id不能为空")
    @RequestKeyParam
    private String channelId;

    @Schema(description = "用户名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "用户名称不能为空")
    private String userName;

    @Schema(description = "用户头像")
    private String headImg;

    @Schema(description = "设备标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "设备标识不能为空")
    private String deviceFlag;

    @Schema(description = "设备类型：0 WEB；1 ANDROID；2 IOS；3 HARMONY", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "设备类型不能为空")
    private Integer deviceType;
}
